/**
 * Created by Administrator on 2017/3/30 0030.
 */
import Relay from "react-relay";

export default class AcceptOrderMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { acceptOrder }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId:this.props.orderId,
                enId:this.props.enId,
                enquiryId:this.props.enquiryId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on acceptOrderPayload {
            acceptOrder {
                errorCode
                value
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
             fragment on acceptOrderPayload {
                acceptOrder {
                    errorCode
                    value
                }
             }
            `]
        }];
    }

}